<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/22
  Time: 11:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>个人主页</title>
    <script type="text/javascript" src="../script/jquery-3.2.1.js"></script>
    <link href="../css/homePage.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../script/commonFunction.js"></script>
    <style type="text/css">
        #welcome, #menu_div, #main_div {
            /*border: solid 1px #000;*/
        }

        #user_quit0:hover {
            cursor: pointer;
            color: rgba(230, 10, 10, 0.7);
        }

        #showTime {
            float: right;
            margin-right: 50%;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#main_div").children().hide();

            tick();

            $("#look_resume").click(function () {
                switchoverColor(this, $("#resume_div"));
            });

            $("#update_psw").click(function () {
                switchoverColor(this, $("#update_div"));
            });

            $("#user_other").click(function () {
                switchoverColor(this);
            });

            $("#couple_back").click(function () {
                switchoverColor(this, $("#resume_deal"));
            });

            $("#user_other").click(function () {
                switchoverColor(this, $("#user_others"));
            });

            var applyNotInterview = "${applyNotInterview}";
            console.log("applyNotInterview = " + applyNotInterview);
//            if (applyNotInterview != "") {
//                if (confirm("您有新的应聘消息，是否要现在查看000000？"))
//                    $("#resume_deal").show().siblings().hide();
//            }

//            if (!applyNotInterview) {
//                if (confirm("您有新的应聘消息，是否要现在查看111111111？"))
//                    $("#resume_deal").show().siblings().hide();
            <c:forEach items="${applyNotInterview}" var="ani">
            <c:if test="${ani.isInterview == 0}">
            if (confirm("您有新的应聘消息，是否要现在查看000000？"))
                $("#resume_deal").show().siblings().hide();
            </c:if>
            <c:if test="${ani.isEmploy == -1}">
            alert("很遗憾，您投递的公司没有录用你！");
            </c:if>
            </c:forEach>
//            }

        });

    </script>
</head>

<body id="main_body">
<div id="welcome">
    <c:if test="${user != null}">
        欢迎${user.phone }登录&nbsp;&nbsp;&nbsp;<span id="user_quit0" onclick="quit()">退出</span>
    </c:if>
    <c:if test="${user == null }">
        <%response.sendRedirect("../user/login.jsp");%>
    </c:if>
    <span id="showTime">本地时间：<span id="localtime"></span></span>
</div>
<div id="menu_div">
    <ul id="menu_div_ul">
        <h4>
            <li id="couple_back">反馈</li>
        </h4>
        <h4>
            <li id="look_resume">查看简历</li>
        </h4>
        <h4>
            <li id="update_psw">修改密码</li>
        </h4>
        <h4>
            <li id="user_other">其他</li>
        </h4>
        <h4>
            <li id="quit">退出</li>
        </h4>
    </ul>
</div>
<div id="main_div">
    <div id="resume_deal">
        <jsp:include page="/admin/applyPages/applyNotInterview.jsp"/>
    </div>
    <div id="resume_div">
        <jsp:include page="resume.jsp"/>
    </div>
    <div id="update_div">
        <jsp:include page="updatePsw.jsp"/>
    </div>
    <div id="user_others"></div>
</div>
<div id="test"></div>
</body>
</html>
